package com.luomu.base.api.constant;


import com.luomu.base.api.bo.RspBaseBO;

public class BaseRspConstants {
    public static final String RSP_CODE_SUCCESS = "0";
    public static final String RSP_DESC_SUCCESS = "成功";
    public static final String RSP_CODE_FAILD = "1";
    public static final String RSP_DESC_FAILD = "失败";
    public static final String RSP_CODE_InvalidParameter = "100";
    public static final String RSP_DESC_InvalidParameter = "请求参数无效";
    public static final String RSP_CODE_SpecialParameter = "101";
    public static final String RSP_DESC_SpecialParameter = "存在不合法参数，无法解析";
    public static final String RSP_CODE_NOTNULLParameter = "102";
    public static final String RSP_DESC_NOTNULLParameter = "参数不能为空";
    public static final String RSP_CODE_RESUBMIT = "103";
    public static final String RSP_DESC_RESUBMIT = "检测到重复提交";
    public static final String RSP_CODE_INCORRECT_SIGNATURE = "104";
    public static final String RSP_DESC_INCORRECT_SIGNATURE = "无效签名";
    public static final String RSP_CODE_NOTFITABLEParameter = "105";
    public static final String RSP_DESC_NOTFITABLEParameter = "参数长度有误";
    public static final String RSP_CODE_UNKNOWN_SIGNATURE = "106";
    public static final String RSP_DESC_UNKNOWN_SIGNATURE = "参数长度有误";
    public static final String RSP_CODE_INCORRECT_TIME = "107";
    public static final String RSP_DESC_INCORRECT_TIME = "无效时间";
    public static final String RSP_CODE_INCORRECT_USER = "109";
    public static final String RSP_DESC_INCORRECT_USER = "无效的用户信息";
    public static final String RSP_CODE_CODE_UNUSEABLE = "110";
    public static final String RSP_DESC_CODE_UNUSEABLE = "code不合法或秘钥不正确，请检查";
    public static final String RSP_CODE_NOT_ACQUIRED_TOKEN = "111";
    public static final String RSP_DESC_NOT_ACQUIRED_TOKEN = "用户信息超时或未登录，请登录";
    public static final String RSP_CODE_OUT_OF_TIME_TOKEN = "112";
    public static final String RSP_DESC_OUT_OF_TIME_TOKEN = "应用TOKEN失效，请重新申请";
    public static final String RSP_CODE_APP_NOT_REG = "113";
    public static final String RSP_DESC_APP_NOT_REG = "第三方应用未注册，请先注册";
    public static final String RSP_CODE_BAD_CREDENTIALS = "114";
    public static final String RSP_DESC_BAD_CREDENTIALS = "无效的用户名或密码";
    public static final String RSP_CODE_APP_SECRET_NOT_lEGAL = "115";
    public static final String RSP_DESC_APP_SECRET_NOT_lEGAL = "应用秘钥错误";
    public static final String RSP_CODE_FILEMAXOUTParameter = "121";
    public static final String RSP_DESC_FILEMAXOUTParameter = "文件过大，请确认文件是否小于500mb";
    public static final String RSP_CODE_FILETIMEOUTParameter = "122";
    public static final String RSP_DESC_FILETIMEOUTParameter = "文件上传错误：上传超时或链接断开";
    public static final String RSP_CODE_FAILUR = "200";
    public static final String RSP_DESC_FAILUR = "服务暂不可用";
    public static final String RSP_CODE_SERVICE_MISSING = "201";
    public static final String RSP_DESC_SERVICE_MISSING = "服务未找到";
    public static final String RSP_CODE_USER_MISSING = "210";
    public static final String RSP_DESC_USER_MISSING = "用户未找到";
    public static final String RSP_CODE_UNSUPPORTED_PERMISSION = "211";
    public static final String RSP_DESC_UNSUPPORTED_PERMISSION = "字段未授权";
    public static final String RSP_CODE_UNSUPPORTED_EMAIL = "212";
    public static final String RSP_DESC_UNSUPPORTED_EMAIL = "未获取到邮箱地址";
    public static final String RSP_CODE_AGENT_ID_NOT_lEGAL = "305";
    public static final String RSP_DESC_AGENT_ID_NOT_lEGAL = "您无权限访问该页面，请点击返回首页";
    public static final String RSP_CODE_UNLOGIN = "306";
    public static final String RSP_DESC_UNLOGIN = "用户未登录";
    public static final String RSP_CODE_AGENT_ID_EMPTY = "307";
    public static final String RSP_DESC_AGENT_ID_EMPTY = "您暂无访问该页面权限，请点击返回首页";
    public static final String RSP_CODE_AGENT_ID_NOT_ACCESS = "308";
    public static final String RSP_DESC_AGENT_ID_NOT_ACCESS = "您暂无此应用权限，请点击返回首页";
    public static final String RSP_CODE_AGENT_NOT_ACTIVATE = "309";
    public static final String RSP_DESC_AGENT_NOT_ACTIVATE = "应用未激活";
    public static final String RSP_CODE_USER_NOT_ACTIVATE = "310";
    public static final String RSP_DESC_USER_NOT_ACTIVATE = "用户未实名";
    public static final String RSP_CODE_CODE_UNAUTHORIZED = "403";
    public static final String RSP_DESC_CODE_UNAUTHORIZED = "无权限访问后端接口";
    public static final String RSP_CODE_SERVER_ERROR = "500";
    public static final String RSP_DESC_SERVER_ERROR = "服务异常";
    public static final int RSP_CODE_SERVER_ERROR_INT = 500;
    public static final String RSP_CODE_DbErrorOccurred = "800";
    public static final String RSP_DESC_DbErrorOccurred = "数据库操作出错，请刷新重试";
    public static final String RSP_CODE_INCALID_SQL = "801";
    public static final String RSP_DESC_INCALID_SQL = "无效sql";
    public static final String RSP_CODE_DBOVERFLOW = "802";
    public static final String RSP_DESC_DBOVERFLOW = "数据库超载";
    public static final String RSP_CODE_INCALID_OBJECT = "803";
    public static final String RSP_DESC_INCALID_OBJECT = "指定对象不存在";
    public static final String RSP_CODE_OBJECT_EXIST = "803";
    public static final String RSP_DESC_OBJECT_EXIST = "指定对象已存在";
    public static final String RSP_CODE_DB_ERROR = "805";
    public static final String RSP_DESC_DB_ERROR = "数据库操作出错";
    public static final String RSP_CODE_NO_APP = "900";
    public static final String RSP_DESC_NO_APP = "访问的应用不存在";
    public static final String RSP_CODE_ERROR = "999";
    public static final String RSP_DESC_ERROR = "未知错误";

    public BaseRspConstants() {
    }

    //生成一个final的返回值
    private static final RspBaseBO successRsp = new RspBaseBO();
    static {
        successRsp.setCode(BaseRspConstants.RSP_CODE_SUCCESS);
        successRsp.setMessage(BaseRspConstants.RSP_DESC_SUCCESS);
    }
    public static RspBaseBO returnSuccess(){
        return successRsp;
    }
}
